package com.zx.ce.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zx.ce.mapper.OrderMapper;
import com.zx.ce.pojo.OrderModel;
import com.zx.ce.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * @author 虎哥
 */
@Slf4j
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, OrderModel> implements OrderService {



    
    @Override
    public Long create(OrderModel order) {
        return null;
    }

    @Override
    public String testEnableBindingAnno() {
        ArrayList<OrderModel> list = new ArrayList<>(2);
        list.add(OrderModel.builder().userId("dd").commodityCode("dd").count(1).money(2).build());
        list.add(OrderModel.builder().userId("2dd").commodityCode("2dd").count(11).money(22).build());
        boolean batch = this.saveBatch(list);
        return "执行结果："+batch;
    }
}
